//
//  NSMutableAttributedString+GFAttributedString.m
//  GoodFood
//
//  Created by dllo on 15/11/2.
//  Copyright © 2015年 荣伟峰. All rights reserved.
//

#import "NSMutableAttributedString+GFAttributedString.h"

@implementation NSMutableAttributedString (GFAttributedString)
#pragma mark - 字符串颜色大小等属性
+ (NSMutableAttributedString *)attributedWithString:(NSString *)string withRangeLocation:(NSInteger)location withRangeLength:(NSInteger)length withDic:(NSDictionary *)attrDic {
    NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:string attributes:nil];
    NSRange range = {static_cast<NSUInteger>(location),static_cast<NSUInteger>(length)};
    [attributedString setAttributes:attrDic range:range];
    return attributedString;
}
@end
